﻿using System;
using Spring.Context.Support;

namespace Demo.CommonBase.Helpers
{
    public class FactoryHelper
    {
        public static object GetObject(string name)
        {
            Object obj = null;


            StaticApplicationContext factory = new StaticApplicationContext();
            if (factory.ContainsObject(name))
            {
                obj = factory.GetObject(name);
            }
            return obj;
        }
    }
}